package utility;

import java.util.LinkedList;

import org.jgrapht.graph.DefaultWeightedEdge;

public class MyDefaultWeightedEdge extends DefaultWeightedEdge{

	private static final long serialVersionUID = 1L;
	
	private String streetName;
	
	
	//memorizzo gli hashCode delle auto che sono in questa strada!
	private LinkedList<Integer> listIdAuto = new LinkedList<Integer>();
	
	public MyDefaultWeightedEdge() {
		super();
		streetName = "";
	}

	@Override
	public String toString() {
		return "MyDefaultWeightedEdge [nomeStrada=" + streetName + "]";
	}
	
	
	public void addAuto(int i)
	{
		this.listIdAuto.addLast(i);
	}
	
	public int getSizeListAuto()
	{
		return this.listIdAuto.size();
	}

	public String getStreetName() {
		return streetName;
	}

	public void setStreetName(String streetName) {
		this.streetName = streetName;
	}

	public LinkedList<Integer> getListIdAuto() {
		return listIdAuto;
	}

	public void setListIdAuto(LinkedList<Integer> listIdAuto) {
		this.listIdAuto = listIdAuto;
		
	}
	
	@Override
	public double getWeight()
	{
		return super.getWeight();
		
	}
	
}
